Skip to main content

Line Class

Description:

  A class for creating Line object.

__call

Type: Metamethod.

Description:

  Creates and returns a new Line object.

Signature:

metamethod __call: function(
self: LineClass,
verts: {Vec2},
color?: Color --[[0xffffffff]]
): Line

Parameters:

ParameterTypeDescription
verts{Vec2}Table of vertices to add to the line.
colorColor[optional] Color of the line (default is opaque white).

Returns:

Return TypeDescription
LineLine object.

__call

Type: Metamethod.

Description:

  Creates and returns a new empty Line object.

Signature:

metamethod __call: function(self: LineClass): Line

Returns:

Return TypeDescription
LineLine object.